package com.zhang.yygh.oss.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@ConfigurationProperties(prefix = "aliyun.oss.file")
@Data
@PropertySource(value = "classpath:oss.properties")
@Component
public class OSSProperties {

    private String endpoint;
    private String keyid;
    private String keysecret;
    private String bucketname;
}
